3.218 \(\int \frac {x}{a x^2+b x^3} \, dx\)

Optimal. Leaf size=18 \[ \frac {\log (x)}{a}-\frac {\log (a+b x)}{a} \]

[Out]

ln(x)/a-ln(b*x+a)/a

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {1584, 36, 29, 31} \[ \frac {\log (x)}{a}-\frac {\log (a+b x)}{a} \]

Antiderivative was successfully verified.

[In]

Int[x/(a*x^2 + b*x^3),x]

[Out]

Log[x]/a - Log[a + b*x]/a

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 1584

Int[(u_.)*(x_)^(m_.)*((a_.)*(x_)^(p_.) + (b_.)*(x_)^(q_.))^(n_.), x_Symbol] :> Int[u*x^(m + n*p)*(a + b*x^(q -
 p))^n, x] /; FreeQ[{a, b, m, p, q}, x] && IntegerQ[n] && PosQ[q - p]

Rubi steps

\begin {align*} \int \frac {x}{a x^2+b x^3} \, dx &=\int \frac {1}{x (a+b x)} \, dx\\ &=\frac {\int \frac {1}{x} \, dx}{a}-\frac {b \int \frac {1}{a+b x} \, dx}{a}\\ &=\frac {\log (x)}{a}-\frac {\log (a+b x)}{a}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 18, normalized size = 1.00 \[ \frac {\log (x)}{a}-\frac {\log (a+b x)}{a} \]

Antiderivative was successfully verified.

[In]

Integrate[x/(a*x^2 + b*x^3),x]

[Out]

Log[x]/a - Log[a + b*x]/a

________________________________________________________________________________________

fricas [A]  time = 0.39, size = 16, normalized size = 0.89 \[ -\frac {\log \left (b x + a\right ) - \log \relax (x)}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x^3+a*x^2),x, algorithm="fricas")

[Out]

-(log(b*x + a) - log(x))/a

________________________________________________________________________________________

giac [A]  time = 0.16, size = 20, normalized size = 1.11 \[ -\frac {\log \left ({\left | b x + a \right |}\right )}{a} + \frac {\log \left ({\left | x \right |}\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x^3+a*x^2),x, algorithm="giac")

[Out]

-log(abs(b*x + a))/a + log(abs(x))/a

________________________________________________________________________________________

maple [A]  time = 0.05, size = 19, normalized size = 1.06 \[ \frac {\ln \relax (x )}{a}-\frac {\ln \left (b x +a \right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(b*x^3+a*x^2),x)

[Out]

1/a*ln(x)-ln(b*x+a)/a

________________________________________________________________________________________

maxima [A]  time = 1.30, size = 18, normalized size = 1.00 \[ -\frac {\log \left (b x + a\right )}{a} + \frac {\log \relax (x)}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x^3+a*x^2),x, algorithm="maxima")

[Out]

-log(b*x + a)/a + log(x)/a

________________________________________________________________________________________

mupad [B]  time = 5.12, size = 15, normalized size = 0.83 \[ -\frac {2\,\mathrm {atanh}\left (\frac {2\,b\,x}{a}+1\right )}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x/(a*x^2 + b*x^3),x)

[Out]

-(2*atanh((2*b*x)/a + 1))/a

________________________________________________________________________________________

sympy [A]  time = 0.16, size = 10, normalized size = 0.56 \[ \frac {\log {\relax (x )} - \log {\left (\frac {a}{b} + x \right )}}{a} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x/(b*x**3+a*x**2),x)

[Out]

(log(x) - log(a/b + x))/a

________________________________________________________________________________________